To become happy
I cheered up after seeing the results.
To make someone happy
The arrival of the unexpected letter cheered him up almost immediately.
An encouragement to somebody who seems unhappy
Cheer up! Things could be worse.